package org.jacp.demo.util;

import java.io.File;


public final class FolderOpenAction {
    private String path;
    private boolean initial=false;
    private File folderToOpen;
    


    public static enum ActionType {
	BROWSE, SCAN
    }

    private final ActionType type;

    public FolderOpenAction(final String path, final ActionType type) {
	this.path = path;
	this.type = type;
    }
    
    public FolderOpenAction(final String path, final ActionType type,final boolean initial) {
	this.path = path;
	this.type = type;
	this.initial = initial;
    }
    
    public FolderOpenAction(final File folderToOpen, final ActionType type,final boolean initial) {
	this.folderToOpen = folderToOpen;
	this.type = type;
	this.initial = initial;
    }
    
    public FolderOpenAction(final File folderToOpen, final ActionType type) {
	this.folderToOpen = folderToOpen;
	this.type = type;
    }

    public String getPath() {
        return path;
    }

    public ActionType getType() {
        return type;
    }

    public boolean isInitial() {
        return initial;
    }

    public File getFolderToOpen() {
        return folderToOpen;
    }
}
